﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BitworkStudios.Web.Mvc.Framework.Configuration
{
    public enum Mode
    {
        Test,
        Production
    }

    public class Execution : ConfigurationBase
    {
        public Execution(string sectionGroupName)
            : base(sectionGroupName)
        {

        }

        public override string SectionName
        {
            get { return GetType().Name; }
        }

        public Mode Mode
        {
            get
            {
                return (Mode)Enum.Parse(typeof(Mode), (string)SectionHashTable["mode"], true);
            }
        }
    }
}
